﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bootstrap.Definition.Enums;
namespace Bootstrap.Template.Image
{
    public partial class BootstrapImageTemplate
    {
        #region Properties

        public string ImageSource { get; set; }

        public ImageTypeEnum ImageType { get; set; }

        public string Alt { get; set; }

        #endregion

        #region Methods

        private string GetImageTypeCss()
        {
            var result = string.Empty;

            switch (ImageType)
            {
                case ImageTypeEnum.Rounded:
                    result = "img-rounded";
                    break;
                case ImageTypeEnum.Circle:
                    result = "img-circle";
                    break;
                case ImageTypeEnum.Thumbnail:
                    result = "img-thumbnail";
                    break;
            }

            return result;
        }
        #endregion

    }
}
